"""
author：wang tian cheng
date: 2020/10/26
project: ludingji
"""

# user=input("请输入用户名：")
# if not user.isupper():
#     print(user)

def func1(password1):
    o=0
    if len(password1)<=8:
        print("您的密码安全指数太低，请重新输入注册密码")
        return o



# def func2(password2):
#     j=0
#     passwd3 = ""
#     if passwd.upper()!=passwd :
#         j+=1
#     if passwd.lower()!=passwd:
#         j+=1
#     for d in password2:
#         passwd2=d
#         if passwd2.isdigit():
#             j+=1
#             break
#     for p in passwd:
#         passwd1=p
#         if passwd1.isalnum():
#             passwd3+=passwd1
#     if len(passwd)!=len(passwd3):
#         j+=1
#     return j
#
#
# def func3(password3):
#     v=0
#     for z,j in enumerate(password3):
#         if password3.count(password3[z:z+3])>=2:
#             v+=1
#     return v
#
# l=0
# k=0
# i=0
# while True:
#     passwd=input("请输入密码：")
#     if func1(passwd)==0:
#         continue
#     else:
#         i+=1
#     if func2(passwd)>=3:
#         i+=1
#     if func3(passwd)==1:
#         i+=1
#     print("分数:",i,"字符数:",func2(passwd))
#     print("您的安全分值为:",i,"分",end=" ")
#     if func2(passwd)<3:
#         print("您的密码没有用三种及以上字符组成",end=" ")
#     if func3(passwd)!=0:
#         print("您的密码存在长度超过或等于3的子串重复")
#     break







